package parser

import (
	"cd-crawler/parser/hupuCBA"
	"cd-crawler/types"
)

func Distribute(params types.ParseParams, funcName string) types.ParseResult {

	switch funcName {
	case types.ParseTeamList:
		return hupuCBA.ParseTeamList(params)
	case types.ParsePlayerList:
		return hupuCBA.ParsePlayerList(params)
	case types.ParsePlayerDetail:
		return hupuCBA.ParsePlayerDetail(params)
	default:
		return types.ParseResult{}
	}

}
